//
//  PickerViewController.h
//  NekaPrice
//
//  Created by yu on 2018/6/13.
//  Copyright © 2018年 ma c. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NSString *(^TitleForRowBlock)(id data, NSInteger row);
typedef void(^PickerConfirmBlock)(id data);

@interface PickerViewController : UIViewController
@property (nonatomic, strong)UIPickerView *pickerView;
@property (nonatomic, copy)TitleForRowBlock titleForRowBlock;
@property (nonatomic, copy)PickerConfirmBlock confirmBlock;

- (instancetype)initWithDataSource:(NSArray *)dataSource;
@end
